﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A7B RID: 2683
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyInviteScNotify : IMessage<LobbyInviteScNotify>, IMessage, IEquatable<LobbyInviteScNotify>, IDeepCloneable<LobbyInviteScNotify>, IBufferMessage
	{
		// Token: 0x170021E2 RID: 8674
		// (get) Token: 0x06007811 RID: 30737 RVA: 0x00140DA3 File Offset: 0x0013EFA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyInviteScNotify> Parser
		{
			get
			{
				return LobbyInviteScNotify._parser;
			}
		}

		// Token: 0x170021E3 RID: 8675
		// (get) Token: 0x06007812 RID: 30738 RVA: 0x00140DAA File Offset: 0x0013EFAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyInviteScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021E4 RID: 8676
		// (get) Token: 0x06007813 RID: 30739 RVA: 0x00140DBC File Offset: 0x0013EFBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyInviteScNotify.Descriptor;
			}
		}

		// Token: 0x06007814 RID: 30740 RVA: 0x00140DC3 File Offset: 0x0013EFC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyInviteScNotify()
		{
		}

		// Token: 0x06007815 RID: 30741 RVA: 0x00140DCB File Offset: 0x0013EFCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyInviteScNotify(LobbyInviteScNotify other) : this()
		{
			this.sourceUid_ = other.sourceUid_;
			this.fightGameMode_ = other.fightGameMode_;
			this.roomId_ = other.roomId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007816 RID: 30742 RVA: 0x00140E08 File Offset: 0x0013F008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyInviteScNotify Clone()
		{
			return new LobbyInviteScNotify(this);
		}

		// Token: 0x170021E5 RID: 8677
		// (get) Token: 0x06007817 RID: 30743 RVA: 0x00140E10 File Offset: 0x0013F010
		// (set) Token: 0x06007818 RID: 30744 RVA: 0x00140E18 File Offset: 0x0013F018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SourceUid
		{
			get
			{
				return this.sourceUid_;
			}
			set
			{
				this.sourceUid_ = value;
			}
		}

		// Token: 0x170021E6 RID: 8678
		// (get) Token: 0x06007819 RID: 30745 RVA: 0x00140E21 File Offset: 0x0013F021
		// (set) Token: 0x0600781A RID: 30746 RVA: 0x00140E29 File Offset: 0x0013F029
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightGameMode FightGameMode
		{
			get
			{
				return this.fightGameMode_;
			}
			set
			{
				this.fightGameMode_ = value;
			}
		}

		// Token: 0x170021E7 RID: 8679
		// (get) Token: 0x0600781B RID: 30747 RVA: 0x00140E32 File Offset: 0x0013F032
		// (set) Token: 0x0600781C RID: 30748 RVA: 0x00140E3A File Offset: 0x0013F03A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x0600781D RID: 30749 RVA: 0x00140E43 File Offset: 0x0013F043
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyInviteScNotify);
		}

		// Token: 0x0600781E RID: 30750 RVA: 0x00140E54 File Offset: 0x0013F054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyInviteScNotify other)
		{
			return other != null && (other == this || (this.SourceUid == other.SourceUid && this.FightGameMode == other.FightGameMode && this.RoomId == other.RoomId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600781F RID: 30751 RVA: 0x00140EB0 File Offset: 0x0013F0B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SourceUid != 0U)
			{
				num ^= this.SourceUid.GetHashCode();
			}
			if (this.FightGameMode != FightGameMode.None)
			{
				num ^= this.FightGameMode.GetHashCode();
			}
			if (this.RoomId != 0U)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007820 RID: 30752 RVA: 0x00140F27 File Offset: 0x0013F127
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007821 RID: 30753 RVA: 0x00140F2F File Offset: 0x0013F12F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007822 RID: 30754 RVA: 0x00140F38 File Offset: 0x0013F138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FightGameMode != FightGameMode.None)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.FightGameMode);
			}
			if (this.SourceUid != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.SourceUid);
			}
			if (this.RoomId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007823 RID: 30755 RVA: 0x00140FB0 File Offset: 0x0013F1B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SourceUid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SourceUid);
			}
			if (this.FightGameMode != FightGameMode.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FightGameMode);
			}
			if (this.RoomId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007824 RID: 30756 RVA: 0x00141020 File Offset: 0x0013F220
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyInviteScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SourceUid != 0U)
			{
				this.SourceUid = other.SourceUid;
			}
			if (other.FightGameMode != FightGameMode.None)
			{
				this.FightGameMode = other.FightGameMode;
			}
			if (other.RoomId != 0U)
			{
				this.RoomId = other.RoomId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007825 RID: 30757 RVA: 0x00141084 File Offset: 0x0013F284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007826 RID: 30758 RVA: 0x00141090 File Offset: 0x0013F290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 64U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.RoomId = input.ReadUInt32();
						}
					}
					else
					{
						this.SourceUid = input.ReadUInt32();
					}
				}
				else
				{
					this.FightGameMode = (FightGameMode)input.ReadEnum();
				}
			}
		}

		// Token: 0x04002DF3 RID: 11763
		private static readonly MessageParser<LobbyInviteScNotify> _parser = new MessageParser<LobbyInviteScNotify>(() => new LobbyInviteScNotify());

		// Token: 0x04002DF4 RID: 11764
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002DF5 RID: 11765
		public const int SourceUidFieldNumber = 8;

		// Token: 0x04002DF6 RID: 11766
		private uint sourceUid_;

		// Token: 0x04002DF7 RID: 11767
		public const int FightGameModeFieldNumber = 5;

		// Token: 0x04002DF8 RID: 11768
		private FightGameMode fightGameMode_;

		// Token: 0x04002DF9 RID: 11769
		public const int RoomIdFieldNumber = 9;

		// Token: 0x04002DFA RID: 11770
		private uint roomId_;
	}
}
